<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        var student1 = new Object();
        student1.name = "张三";
        student1.age = 18;
        student1.email = "zhangsan@163.com";
        student1.hobby = "打球";
        student1.show = function () {
            alert("我是： " + this.name + "，我的爱好是： " + this.hobby);
        }
        student1.show();// 我是：张三，我的爱好是：打球

        var student2 = new Object();
        student2.name = "李四";
        student2.age = 19;
        student2.email = "lisi@163.com";
        student2.hobby = "看书";
        student2.show = function () {
            alert("我是： " + this.name + "，我的爱好是： " + this.hobby);
        }
        student2.show();// 我是：李四，我的爱好是：看书
    </script>
</head>
<body>
    
</body>
</html>